package br.ufrj.arch.util;

import java.util.ResourceBundle;

public class BundleUtil {
	
	private static BundleUtil instance;
	
	private ResourceBundle properties;
	
	private BundleUtil() {
		super();
		properties = ResourceBundle.getBundle("system");
	}
	
	public static BundleUtil instance() {
		//Tr00 pracaralho!
		return instance = instance == null ? new BundleUtil() : instance;
	}
	
	public String get(String key) {
		
		String value = null;
		
		if (properties.containsKey(key)) {
			value = properties.getString(key);
		}
		
		return value;
	}
}
